/**
 * @param {string} num
 * @return {boolean}
 */
 var sumGame = function(num) {
    const arr = num.split(''), len = arr.length
    let cntX = 0, cntY = 0
    let sumX = 0, sumY = 0
    for(let i = 0; i<len/2; i++){
        if(arr[i] === '?'){
            cntX++
        }else{
            sumX += Number(arr[i])
        }
    }
    for(let i = len/2; i<len; i++){
        if(arr[i] === '?'){
            cntY++
        }else{
            sumY += Number(arr[i])
        }
    }
    console.log(sumX, sumY)
    let dif = Math.abs(sumX-sumY), cnt = cntX + cntY
    if(cnt === 0 && dif === 0){
        return false
    }
    let difCnt = Math.abs(cntX-cntY)
    if((cnt % 2) === 0 && difCnt%2 >0){
        return false
    }
    return true
};